package jp.ac.u_tokyo.dch.model.xml.tree;

import java.util.List;

public class LeafEntry extends Entry {

	private String value;

	public LeafEntry(String name, String value) {

		setName(name);
		this.value = value;
	}


	public String print() {

		StringBuilder output = new StringBuilder();

		output.append("<data name=\"");
		output.append(getName());
		output.append("\" value=\"");
		output.append(value);
		output.append("\" ");
		output.append("/>");

		return output.toString();
	}




	public void addData(int level, List<TreeData> dataList) {
	}

}
